import cn.hutool.http.HttpUtil;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by jiangzeyin on 2018/8/21.
 */
public class req {
    public static void main(String[] args) {
        Map<String, Object> map = new HashMap<>(4);
        map.put("content", "测试第三方三的");
        map.put("size", 2);
        String response = null;
        try {
            response = HttpUtil.createPost("http://127.0.0.1:8888/keyword/extract.json")
                    .form(map)
                    .charset("UTF-8").execute().body();
//            response = HttpUtil.post(, map);
        } catch (Exception e) {

        }
        System.out.println(response);
    }
}
